package com.dty.dtycompute.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tdata_ht_lvo
 */
@Data
public class TdataHtLvo implements Serializable {
    /**
     * 
     */
    private String id;

    /**
     * 
     */
    private String meterid;

    /**
     * 
     */
    private String departid;

    /**
     * 
     */
    private String measureid;

    /**
     * 
     */
    private String meterno;

    /**
     * 
     */
    private Date dt;

    /**
     * 
     */
    private BigDecimal vab;

    /**
     * 
     */
    private BigDecimal vbc;

    /**
     * 
     */
    private BigDecimal vca;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TdataHtLvo other = (TdataHtLvo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMeterid() == null ? other.getMeterid() == null : this.getMeterid().equals(other.getMeterid()))
            && (this.getDepartid() == null ? other.getDepartid() == null : this.getDepartid().equals(other.getDepartid()))
            && (this.getMeasureid() == null ? other.getMeasureid() == null : this.getMeasureid().equals(other.getMeasureid()))
            && (this.getMeterno() == null ? other.getMeterno() == null : this.getMeterno().equals(other.getMeterno()))
            && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt()))
            && (this.getVab() == null ? other.getVab() == null : this.getVab().equals(other.getVab()))
            && (this.getVbc() == null ? other.getVbc() == null : this.getVbc().equals(other.getVbc()))
            && (this.getVca() == null ? other.getVca() == null : this.getVca().equals(other.getVca()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMeterid() == null) ? 0 : getMeterid().hashCode());
        result = prime * result + ((getDepartid() == null) ? 0 : getDepartid().hashCode());
        result = prime * result + ((getMeasureid() == null) ? 0 : getMeasureid().hashCode());
        result = prime * result + ((getMeterno() == null) ? 0 : getMeterno().hashCode());
        result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode());
        result = prime * result + ((getVab() == null) ? 0 : getVab().hashCode());
        result = prime * result + ((getVbc() == null) ? 0 : getVbc().hashCode());
        result = prime * result + ((getVca() == null) ? 0 : getVca().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", meterid=").append(meterid);
        sb.append(", departid=").append(departid);
        sb.append(", measureid=").append(measureid);
        sb.append(", meterno=").append(meterno);
        sb.append(", dt=").append(dt);
        sb.append(", vab=").append(vab);
        sb.append(", vbc=").append(vbc);
        sb.append(", vca=").append(vca);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}